package paradigm.paradigmClass;

public class test {

    public static void main(String[] args) {

        Box<String> box = new Box<>();

        box.setNumber("This is a String");
        System.out.println(box.getNumber());

        BoxSon1 son1 = new BoxSon1();
        son1.setNumber(1);
        System.out.println(son1.getNumber());

        BoxSon3<Double> boxSon3  = new BoxSon3<>();
        boxSon3.setNumber(1.11);
        System.out.println(boxSon3.getNumber());

        BoxInterfaceImpl boxInterface = new BoxInterfaceImpl();
        boxInterface.test(1.11);

        BoxInterface2<String> boxInterface2 = new BoxInterface2Impl<>();
        boxInterface2.test("String aaa");

        BoxInterface2Impl<Double> boxInterface21 = new BoxInterface2Impl<>();
        boxInterface21.test(1.11);
        System.out.println(boxInterface21.getValue());


    }

}
